import request from '@/utils/request'

// 查询医生预约管理列表
export function listDoctorAppointment(query) {
  return request({
    url: '/manage/doctorAppointment/list',
    method: 'get',
    params: query
  })
}

// 查询医生预约管理详细
export function getDoctorAppointment(id) {
  return request({
    url: '/manage/doctorAppointment/' + id,
    method: 'get'
  })
}

// 新增医生预约管理
export function addDoctorAppointment(data) {
  return request({
    url: '/manage/doctorAppointment',
    method: 'post',
    data: data
  })
}

// 修改医生预约管理
export function updateDoctorAppointment(data) {
  return request({
    url: '/manage/doctorAppointment',
    method: 'put',
    data: data
  })
}

// 删除医生预约管理
export function delDoctorAppointment(id) {
  return request({
    url: '/manage/doctorAppointment/' + id,
    method: 'delete'
  })
}
